package com.rpc.transport;

import com.rpc.entity.RpcRequest;
import com.rpc.entity.RpcResponse;
import com.rpc.serializer.CommonSerializer;

import java.util.concurrent.CompletableFuture;

/**
 * @author ZhangYongLiang
 * @Date 2021/11/12 16:54
 */
public interface RpcClient {

    CompletableFuture<RpcResponse> sendRequest(RpcRequest rpcRequest);

    void setSerializer(CommonSerializer serializer);
}
